/*
    this file generator by ServicePlugin
    @Author: xinlu
    @Email: 442559691@qq.com
*/

package org.publiccms.mybatis.service;

import com.publiccms.common.datasource.MultiDataSource;
import java.util.List;
import org.apache.ibatis.session.RowBounds;
import org.publiccms.mybatis.entity.CmsCategoryAttribute;
import org.publiccms.mybatis.entity.CmsCategoryAttributeQuery;
import org.publiccms.mybatis.mapper.CmsCategoryAttributeMapper;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import org.springframework.transaction.annotation.Transactional;

@Service
@Transactional
public class CmsCategoryAttributeService {
    @Autowired
    private CmsCategoryAttributeMapper mapper;

    public long countByExample(CmsCategoryAttributeQuery example) {
        return mapper.countByExample(example);
    }

    public int deleteByExample(CmsCategoryAttributeQuery example) {
        return mapper.deleteByExample(example);
    }

    public int deleteByPrimaryKey(Integer categoryId) {
        return mapper.deleteByPrimaryKey(categoryId);
    }

    public int insert(CmsCategoryAttribute record) {
        return mapper.insert(record);
    }

    public int insertSelective(CmsCategoryAttribute record) {
        return mapper.insertSelective(record);
    }

    public java.util.List<CmsCategoryAttribute> selectByExampleWithBLOBsWithRowbounds(CmsCategoryAttributeQuery example, RowBounds rowBounds) {
        return mapper.selectByExampleWithBLOBsWithRowbounds(example,rowBounds);
    }

    public java.util.List<CmsCategoryAttribute> selectByExampleWithBLOBs(CmsCategoryAttributeQuery example) {
        return mapper.selectByExampleWithBLOBs(example);
    }

    public java.util.List<CmsCategoryAttribute> selectByExampleWithRowbounds(CmsCategoryAttributeQuery example, RowBounds rowBounds) {
        return mapper.selectByExampleWithRowbounds(example,rowBounds);
    }

    public java.util.List<CmsCategoryAttribute> selectByExample(CmsCategoryAttributeQuery example) {
        return mapper.selectByExample(example);
    }

    public CmsCategoryAttribute selectByPrimaryKey(Integer categoryId) {
        return mapper.selectByPrimaryKey(categoryId);
    }

    public int updateByExampleSelective(CmsCategoryAttribute record, CmsCategoryAttributeQuery example) {
        return mapper.updateByExampleSelective(record,example);
    }

    public int updateByExampleWithBLOBs(CmsCategoryAttribute record, CmsCategoryAttributeQuery example) {
        return mapper.updateByExampleWithBLOBs(record,example);
    }

    public int updateByExample(CmsCategoryAttribute record, CmsCategoryAttributeQuery example) {
        return mapper.updateByExample(record,example);
    }

    public int updateByPrimaryKeySelective(CmsCategoryAttribute record) {
        return mapper.updateByPrimaryKeySelective(record);
    }

    public int updateByPrimaryKeyWithBLOBs(CmsCategoryAttribute record) {
        return mapper.updateByPrimaryKeyWithBLOBs(record);
    }

    public int updateByPrimaryKey(CmsCategoryAttribute record) {
        return mapper.updateByPrimaryKey(record);
    }

    public void setDataSourceName(String dataSourceName) {
        MultiDataSource.setDataSourceName(dataSourceName);
    }

    public void setDefaultDataSource() {
        MultiDataSource.resetDataSourceName();
    }
}